package com.syf.kit.config;

import com.syf.kit.SyIdGenerator;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@EnableConfigurationProperties(SyIdGeneratorConfiguration.class)
public class SyIdGeneratorAutoConfig {

    @Bean(name = "idGeneratorKit")
    public SyIdGenerator buildKit(SyIdGeneratorConfiguration configuration) {
        return new SyIdGenerator(configuration);
    }

}
